home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-03-10 | 2.1 KB | 39 lines | [TEXT/MPS ] |
- #
- # File: Timer Readme
- #
- # Written by: Dave Evans
- #
- # Copyright: © 1994 by Apple Computer, Inc., all rights reserved.
- #
- # I've provided the Timer.s assembly file and its resulting Timer.o object file to help
- # you profile time critical PowerPC code. It provides three routines that read the
- # PowerPC 601 Real Time Clock (RTC) registers and return either the raw values or a
- # microsecond result. I recommend that you read the microsecond value before and after
- # your critical code to estimate the speed of its execution. The two registers, RTCU
- # and RTCL provide a second clock (RTCU) and a nanosecond clock (RTCL). Please refer
- # to the PowerPC 601 RISC Microprocessor User's Manual for a further discussion of
- # these registers and how to effectively use them.
- #
- # Thanks go to Mike Neil for designing and implementing this library, and for allowing
- # me to release it for your use. Mike's a really sharp guy in Developer Technical
- # Support and a pro at profiling PowerPC code.
- #
- # This library will only operate on a PowerPC 601 processor. No future processors,
- # nor Macintosh products based on those future processors, will successfully
- # execute this Timer code. But you will find it useful for profiling your code
- # on the PowerPC 601 processor.
- #
- # DO NOT USE THIS LIBRARY IN YOUR SHIPPING PRODUCTS. We are providing it to you only
- # for development purposes. You are not free to release this code. You may not
- # redistribute it in your products. If you need similar timing information in your
- # products use the public Microseconds routine described below.
- #
- # You may also call the routine Microseconds defined in the Macintosh on RISC SDK
- # in the Interface file Timer.h there. This routine will provide Microsecond
- # timing on all Power Macintosh products, but when using it you should
- # call it a few times first to estimate the routines internal overhead. It may have
- # different granularity and overhead on different PowerPC processors. The routine
- # also may have a significantly lower granularity compared to the PowerPC 601
- # nanosecond register. But you may use that routine in your shipping products.
- #
-